<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base target="_self" />
<title>文件上传</title>
<style type="text/css">
body {
	font-size: 12px;
}
</style>
</head>

<body style="overflow: hidden">
	<form method="post" enctype="multipart/form-data"
		action="<?php echo url('admin::interface/upload')?>"
		target="uploadbox">
		<table id="oktable" width="100%" border="0" cellspacing="2"
			cellpadding="2">
			<tr>
				<td>选择文件:</td>
				<td><input type="file" name="uploadfile" /></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>仅支持: jpg,bmp,png,gif,swf 请注意上传图片的大小比例!</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="上传文件" />&nbsp;<input type="button"
					onclick="window.close()" value="关闭窗口" /></td>
			</tr>
		</table>
	</form>
	<iframe name="uploadbox" src="" width="0" height="0"></iframe>
</body>
</html>
<script
	type="text/javascript"
	src="<?php echo $_BASE_DIR; ?>javascripts/jquery-1.4.4.min.js"></script>
<script>
	function closeWindow()
	{
		var wind = window.dialogArguments;
		window.returnValue = $('#filepath').val();
		window.close();
	}
</script>
